STEP 9: Now that we have our scatter plot, let's do some predicting.

A line of best fit estimates the trend of our data. It's a prediction about the relationship between two variables.

  • In , drag in Show Line of Best Fit.
  • Click Run and see the linear equation for our scatter plot at the top.
  • This linear equation is the equation for our line of best fit!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)